package mylibrary.designPattern.decorator;


/**
 * 
 * @author gaoshuai
 * 
 * 装饰角色，持有一个构件对象的实例，并定义了抽象构件定义的接口
 *
 */

public class MessageBoardDecorator implements MessageBoardHandler{

	private MessageBoardHandler handler;
	
	public MessageBoardDecorator(MessageBoardHandler handler) {
		this.handler = handler;
	}
	
	public String filter(String msg) {
		return handler.filter(msg);
	}
}
